package com.ucombuy.sponsor.service;

import com.ucombuy.sponsor.entity.AdPlan;
import com.ucombuy.sponsor.vo.AdPlanGetRequest;
import com.ucombuy.sponsor.vo.AdPlanRequest;
import com.ucombuy.sponsor.vo.AdPlanResponse;
import com.uocmbuy.adver.common.exception.AdverException;

import java.util.List;

/**
 * Created by yaosheng on 2021/3/27.
 */
public interface IAdPlanService {

    /**
     * 创建推广计划
     */
    AdPlanResponse createAdPlan(AdPlanRequest request) throws AdverException;

    /**
     * 获取推广计划
     */
    List<AdPlan> getAdPlanByIds(AdPlanGetRequest request) throws AdverException;

    /**
     * 更新推广计划
     */
    AdPlanResponse updateAdPlan(AdPlanRequest request) throws AdverException;

    /**
     * 删除推广计划
     */
    void deleteAdPlan(AdPlanRequest request) throws AdverException;
}
